-- GENERATED SPELL FOR [Bonestripper Buzzard] --


function spell0_16972(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(37012,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16972', 2254, 1)
end

function spell1_16972(pUnit, Event) --@Use Corpse,n/a--
pUnit:FullCastSpellOnTarget(33985,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16972', 592, 1)
end

function Sorts_16972(pUnit, Event)
local choix_sorts_16972 = math.random(0, 1)
if choix_sorts_16972 == 0 then
pUnit:RegisterEvent('spell0_16972', 1, 1)
end
if choix_sorts_16972 == 1 then
pUnit:RegisterEvent('spell1_16972', 1, 1)
end
end

function mob16972_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16972', math.random(1500, 3000), 1)
end

function mob16972_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16972_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16972_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16972, 1, 'mob16972_Action')
RegisterUnitEvent(16972, 2, 'mob16972_Leave')
RegisterUnitEvent(16972, 3, 'mob16972_Kill')
RegisterUnitEvent(16972, 4, 'mob16972_Die')
